package com.cskaoyan.controller.wx;

import com.cskaoyan.service.mallservice.OrderService;
import com.cskaoyan.service.wx.WxUserIndexService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.wx.WxUserIndexVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hsp
 * @date 2021/5/12 21:23
 */
@RestController
public class WxUserIndexController {

    @Autowired
    WxUserIndexService wxUserIndexService;
    @Autowired
    OrderService orderService;

    @RequestMapping("wx/user/index")
    public BaseRespVo index() {
        WxUserIndexVo wxUserIndexVo = wxUserIndexService.getUserIndex();

        return BaseRespVo.ok(wxUserIndexVo);
    }
}
